//
//  ThemeCell.m
//  DaJiang
//
//  Created by sally on 16/9/25.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import "ThemeCell.h"

@interface ThemeCell ()

@property (weak, nonatomic) IBOutlet UIImageView *bgImage;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UILabel *meetLabel;

@end

@implementation ThemeCell

- (void)awakeFromNib {
}

- (void)setCellData:(RecommendModel *)cellData {
  [self.bgImage sd_setImageWithURL:[NSURL URLWithString:cellData.op_data.recommend_pic] placeholderImage:[UIImage imageNamed:@"large_image_default"]];
  self.meetLabel.text = [NSString stringWithFormat:@"%ld人想约", (long) cellData.op_data.like_count];
  self.titleLabel.text = [NSString stringWithFormat:@"%@ | %@", cellData.pro_user_data.user_data.user_name, cellData.pro_user_data.user_data.user_pro_title];
  self.contentLabel.text = cellData.op_data.recommend_title;
}

- (void)setCellExpertData:(ExpertModel *)cellData {
  [self.bgImage sd_setImageWithURL:[NSURL URLWithString:cellData.user_data.user_profile_bg_pic] placeholderImage:[UIImage imageNamed:@"large_image_default"]];
  self.meetLabel.text = [NSString stringWithFormat:@"%ld人想约", (long) cellData.user_data.like_count];
  self.titleLabel.text = cellData.user_data.user_pro_desc;
  self.contentLabel.text = [NSString stringWithFormat:@"%@ | %@", cellData.user_data.user_name, cellData.user_data.user_pro_title];
}

@end
